import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'

Vue.use(Vuex)

const state = {
  cartList: {}, // 加入购物车的商品列表
  shopid: null, //商铺id,
  alertDialog: false, //可选备注内容
}

export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations,
})
